package com.dyna.foundation.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 路由
 */
@Data
public class MenuDto {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("父菜单ID")
    private Long parentId;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单类型", notes = "1-菜单；2-目录；3-外链；4-按钮权限")
    private Integer type;

    @ApiModelProperty("路由路径(浏览器地址栏路径)")
    private String path;

    @ApiModelProperty("组件路径(vue页面完整路径，省略.vue后缀)")
    private String component;

    @ApiModelProperty("权限标识")
    private String perm;

    @ApiModelProperty(value = "显示状态", notes = "1:显示;0:隐藏")
    private Integer visible;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("菜单图标")
    private String icon;

    @ApiModelProperty("跳转路径")
    private String redirect;

    @ApiModelProperty("拥有路由的权限")
    private List<String> roles;

    @ApiModelProperty("【目录】只有一个子路由是否始终显示(1:是 0:否)")
    private Integer alwaysShow;

    @ApiModelProperty(value = "【菜单】是否开启页面缓存", notes = "1:是 0:否")
    private Integer keepAlive;

}